//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    input_seach:''
  },
  //事件处理函数
  bindViewTap: function() {

  },
  onLoad: function () {
   
  },
  // 监听搜索输入框
  input_seach:function(e){
    var that=this;
    that.setData({
      input_seach: e.detail.value
    })
    
  },
  // 点击搜索
  seach:function(){
    var that =this;
    if (that.data.input_seach){
      console.log("开始搜索")
    }else{
      console.log("不能为空")
    }
  }

})
